package com.gxa.feign;

import com.gxa.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

//这是库存服务暴露的服务
@FeignClient("seata-service-storage")
public interface StorageFeignService {

	// 扣减的是哪个商品 扣减多少
	@PostMapping(value = "/storage/decrease")
	Result decrease(@RequestParam("productId") Long productId, @RequestParam("count") Integer count);
}